package com.example.myyiyanmengjava;

import com.example.myyiyanmengjava.bean.LoginBean;
import com.example.myyiyanmengjava.bean.SheetBean;
import com.example.myyiyanmengjava.bean.TiTypeListBean;

import java.util.HashMap;

import io.reactivex.Flowable;
import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;
import retrofit2.http.Url;

/**
 * 作者：朱勇闯
 * data : 2021/3/29  15:22
 * 作用： xxxx
 */
public interface ApiService {


    String baseUrl = "https://app.yiyanmeng.com/";

    @GET
    Observable<TiTypeListBean> getTiTypeList(@Url String url);

    @POST("index.php/login/login")
    @FormUrlEncoded
    Flowable<LoginBean> getLoginList(@FieldMap HashMap<String, String> map);

    @POST("index.php/shiti/get_ti_bufen_list")
    @FormUrlEncoded
    Flowable<SheetBean> getInterList(@FieldMap HashMap<String, String> map, @HeaderMap HashMap<String, String> mapHead);


}
